package com.dotflat.docs.po;

import com.dotflat.rest.PO.AreableObjectBasePO;
import com.dotflat.rest.utils.LikeableField;
import com.dotflat.rest.utils.UniqueField;
import com.dotflat.rest.utils.UniqueType;
import com.fasterxml.jackson.annotation.JsonIgnore;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * *******************************
 * Created by Ron.
 * form com.matt
 * on 2017/7/13
 * *******************************
 */

@Data
@UniqueType
@EqualsAndHashCode(callSuper=false)
public class DocumentDirectoryPO extends AreableObjectBasePO {

    @ApiModelProperty(value = "封面")
    private String cover;

    @ApiModelProperty(value = "类型,主要使用以区分所有需要分类对待的情况, 0.文档, 1.教学资源")
    private Integer type;

    @LikeableField
    @UniqueField
    @ApiModelProperty(value = "园区ID")
    private String areaId;

    @LikeableField
    @UniqueField
    @ApiModelProperty(value = "标题")
    private String title;

    @ApiModelProperty(value = "内容")
    private String content;

    @ApiModelProperty(value = "排序")
    private Integer sort;

    @ApiModelProperty(value = "上传老师名字", hidden = true)
    @JsonIgnore
    private String staffName;

    @ApiModelProperty(value = "上传老师头像", hidden = true)
    @JsonIgnore
    private String staffHeadImg;
}
